package com.owen.dao;

import com.owen.pojo.Cake;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CakeDao {

    public List<Cake> findAll();

    public List<Cake> findByCake(@Param("cake") Cake cake, @Param("ids") Long [] ids);

    public Cake findById(Long id);

    public Cake findCakeById(Long id);

    public Integer deleteBatch(Integer [] ids);

    public Integer deleteById(Long id);

    public Integer updateById(Cake cake);

    public Integer addCake(Cake cake);

    public Integer addFruitsCake(@Param("cakeId") Integer cakeId, @Param("fruitsId") Integer fruitsId);

    public Integer deleteFruitsCake(Integer id);

}